footer {
    color: white;
    padding: 10px;
    background: var(--main-container-bg);
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    border-top: var(--main-border);
    box-shadow: var(--container-shadow);
    transform-style: preserve-3d;
    z-index: 1;
}

footer::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #009933, #00ff66);
    box-shadow: inset 0 -2px -4px rgba(255, 255, 255, 0.2), inset 0 3px -5px rgba(0, 0, 0, 0.5), 0 -5px -5px rgba(0, 0, 0, 0.5);
    border-radius: inherit;
    transform: translate3d(0, -0.55em, -1em);
    z-index: -1;
}

.footer-limit {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    box-sizing: border-box;
}

.footer-content {
    font-size: var(--main-font-size);
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: var(--controls-bg);
    box-shadow: var(--controls-shadow);
    padding: 15px;
    border-radius: var(--mini-screen-border-radius);
}

.footer-left {
    max-width: 200px;
    color: var(--main-text-color);
    font-size: var(--main-font-size);
    font-family: sans-serif;
    font-weight: bold;
    text-shadow: -0.5px -0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px 0.5px 0 #000;
}

.footer-logo-pair {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-pair span {
    color: #00ff00;
}

.footer-logo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #4d4d4d;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), -2px -2px 4px rgba(255, 255, 255, 0.4);
}

.socials-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    text-shadow: -0.5px -0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px 0.5px 0 #000;
}

.socials-footer a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

.socials-footer a:hover {
    color: #e65000;
}

.contract-address {
    margin-top: 10px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
    text-shadow: -0.5px -0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px 0.5px 0 #000;
}

.contract-address .contract-label {
    font-weight: bold;
}

.contract-address .contract-value {
    font-family: "Courier New", monospace;
    font-size: 0.85em;
    word-break: break-all;
    user-select: all;
    opacity: 0.95;
}

.contract-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
    font-family: inherit;
    font-size: 0.75em;
    font-weight: bold;
    cursor: pointer;
    text-shadow: none;
    transition: transform 0.15s ease, background 0.15s ease, filter 0.15s ease;
}

.contract-copy-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
    filter: brightness(1.2);
}

.contract-copy-btn:active {
    transform: scale(0.95);
}

.contract-copy-btn.copied {
    animation: contractCopyPop 0.45s ease;
}

@keyframes contractCopyPop {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.25);
        filter: brightness(1.4);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.contract-copied-toast {
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translate(-50%, -4px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(0, 0, 0, 0.85);
    padding: 3px 9px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    text-shadow: none;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.contract-copied-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.footer-section {
    display: flex;
    flex-direction: column;
    font-size: var(--main-font-size);
    color: var(--main-text-color);
    font-family: sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: bold;
}

.section-title {
    text-align: center;
    padding: 0px 10px;
    border-radius: 2px;
    margin-bottom: 5px;
    background: linear-gradient( to right, #003300 0%, #02641b 30%, #02691c 50%, #02641b 70%, #003300 100%);
    box-shadow: 0 2px 2px -1px #003300 inset, 0 -2px 2px -1px #003300 inset, 2px 0 2px -1px #003300 inset, -2px 0 1px -0.5px #003300 inset;
}

.footer-link {
    margin: 2px 0;
    cursor: pointer;
    text-shadow: -0.5px -0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px 0.5px 0 #000;
}

.footer-link:hover {
    color: #e65000;
}

.copyright {
    font-family: sans-serif;
    flex: 1 1 100%;
    text-align: center;
    font-size: var(--main-font-size);
    color: var(--main-text-color);
    font-weight: bold;
    box-shadow: 0 2px 0.75px -0.8px var(--main-text-color) inset;
    text-shadow: -0.5px -0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px 0.5px 0 #000;
}

.header.modal-expanded .modals-wrapper {
    max-height: 500px;
    padding-top: 20px;
    padding-bottom: 15px;
}

.modal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.modal-link {
    color: var(--text-color, #ffffff);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.modal-link:hover {
    opacity: 1;
}

.modals-wrapper {
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: all 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.modal-header h3 {
    color: #00ff00;
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #00ff00;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: scale(1.1);
}

.modal-body {
    color: white;
    font-family: sans-serif;
    line-height: 1.6;
    max-height: 230px;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.3);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 0, 0.5);
}

.modal-content-area h4 {
    color: #78d739;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-content-area ul {
    margin: 10px 0;
    padding-left: 20px;
}

.modal-content-area a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal-content-area a:hover {
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.all-in-one-content.footer-links {
    padding: 20px;
}

.cookie-settings-link {
    color: #00ff00;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-settings-link:hover {
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.google-translate-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .modal-content-area {
        width: 90%;
    }
    .footer-content {
        flex-wrap: wrap;
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }
    .footer-left {
        max-width: 350px;
    }
    .copyright {
        font-size: 0.8rem;
    }
    .section-title {
        font-size: 0.7rem;
    }
    .footer-link {
        font-size: 0.7rem;
    }
    .modal-link {
        padding: 0.5em 0.5em;
        font-size: 0.7rem;
        text-decoration: underline;
        text-align: center;
    }
    .modal-links {
        gap: 10px;
        flex-wrap: wrap;
    }
    .modal-link {
        font-size: 0.8rem;
        padding: 5px;
    }
    .modal-content-area {
        padding: 10px;
        font-size: 0.8rem;
        max-height: 450px;
    }
    .modal-content-area h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .modal-content-area h4 {
        font-size: 0.9rem;
        margin-top: 15px;
        margin-bottom: 8px;
    }
}